home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / HENSA / MATHS / PLPLOT / PLPLOT.ZIP / utils / xform.c < prev   
Encoding:
C/C++ Source or Header  |  1993-07-02  |  649 b   |  29 lines

  1. /* $Id: xform.c,v 1.3 1993/07/02 07:17:39 mjl Exp $
  2.    $Log: xform.c,v $
  3.  * Revision 1.3  1993/07/02  07:17:39  mjl
  4.  * Changed include of plplot.h to plplotP.h.
  5.  *
  6.  * Revision 1.2  1992/09/29  04:46:49  furnish
  7.  * Massive clean up effort to remove support for garbage compilers (K&R).
  8.  *
  9.  * Revision 1.1  1992/05/20  21:36:02  furnish
  10.  * Initial checkin of the whole PLPLOT project.
  11.  *
  12. */
  13.  
  14. /*    xform.c
  15.  
  16.     Example linear transformation function for contour plotter.
  17. */
  18.  
  19. #include "plplotP.h"
  20.  
  21. extern PLFLT tr[];
  22.  
  23. void 
  24. xform(PLFLT x, PLFLT y, PLFLT * tx, PLFLT * ty)
  25. {
  26.     *tx = tr[0] * x + tr[1] * y + tr[2];
  27.     *ty = tr[3] * x + tr[4] * y + tr[5];
  28. }
  29.